package com.huluobo.a2107jetpackkotlindemo.livedata

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData

/**
 *  Created by LC on 2023/11/22.
 */
class StudentRepo {
    fun getStudentScore(id: String): LiveData<Int> {
        val studentLiveData = MutableLiveData<Int>()
        if (id == "1") {
            studentLiveData.value = 90
        } else {
            studentLiveData.value = 60
        }
        return studentLiveData
    }
}